<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>下级客户订单</title>
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <link rel="stylesheet" href="/css/all.css"/>
</head>
<body>
<div class="title">下级客户订单
    <div class="title_left"><a href="{{urlHome('index','getIndex')}}">返回</a></div>
</div>
    <table>
        <tr>
            <th>订单号</th>
            <th>收货人</th>
            <th>金额(元)</th>
            <th>件数</th>
            <th>状态</th>
            <th>操作</th>
        </tr>
        @if(isset($rows[0]))
            @foreach($rows as $v)
        <tr>
            <td><a href="{{urlHome('order','getOrderDetail',['id'=>$v['id']])}}">{{$v['order_sn']}}</a></td>
            <td>{{$v['name']}}</td>
            <td>{{$v['pay_money']}}</td>
            <td>{{$v['goods_num']}}</td>
            <td>
                @if($v['status'] == 0)
                    <span style="color:red">待发货</span>
                    @else
                    <span style="color:green">已发货</span>
                @endif
            </td>
            <td>
                @if($v['status'] == 0)
                <a href="{{urlHome('js','getScan',['order_sn'=>$v['order_sn']])}}">发货</a>
                @else
                    <a href="http://m.kuaidi100.com/index_all.html?type={{$v['shipping_company']}}&postid={{$v['shipping_code']}}&callbackurl={{action('Home\OrderController@getOrderList')}}"><font color="blue">查看物流</font></a>
                @endif
            </td>
        </tr>
            @endforeach
        @else
            <tr><td colspan="4" >暂无下级客户订单</td></tr>
        @endif

    </table>
</body>
</html>